package com.pony.service.impl;

import com.pony.dao.YgMapper;
import com.pony.entity.Cplb;
import com.pony.entity.Yg;
import com.pony.service.YgService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("ygService")
public class YgServiceImpl implements YgService {
    @Autowired
    private YgMapper ygMapper;

    @Override
    public List<Yg> getAll() {
        return ygMapper.getAll();
    }

    @Override
    public int delYg(int ygid) {
        return ygMapper.delYg(ygid);
    }

    @Override
    public Yg getYgById(int ygid) {
        return ygMapper.getYgById(ygid);
    }

    @Override
    public int updateYg(Yg yg) {
        return ygMapper.updateYg(yg);
    }

    @Override
    public int addYg(Yg yg) {
        return ygMapper.addYg(yg);
    }
}
